package com.book.controller;

import com.book.format.Result;
import com.book.service.DictService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * Created by Mikey on 2017/6/11.
 */
@Controller
public class DictController {

    @Resource
    private DictService dictService;

    @RequestMapping("/selectDictByDpid.json")
    @ResponseBody
    public Result selectDictByDpid(String d_pid){
        return dictService.selectDictByDpid(d_pid);
    }
}
